package com.manager.entity;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 项目对象 projects
 *
 * @author tao
 * @date 2021-07-11
 */
public class Projects implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 项目 ID */
    private Long id;

    /** 用户 ID */
    private Long userId;

    /** 项目名称 */
    private String name;

    /** 是否是项目(0:是 1: 不是) */
    private Integer isProject;

    /** 项目描述 */
    private String desc;

    /** 归档(0: 正常 1:项目只读) */
    private Integer lock;

    /** 创建时间
 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatedTime;

  /** 状态(0: 可用 1:不可用) */
  private Integer status;

  public static long getSerialVersionUID() {
    return serialVersionUID;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Integer getIsProject() {
    return isProject;
  }

  public void setIsProject(Integer isProject) {
    this.isProject = isProject;
  }

  public String getDesc() {
    return desc;
  }

  public void setDesc(String desc) {
    this.desc = desc;
  }

  public Integer getLock() {
    return lock;
  }

  public void setLock(Integer lock) {
    this.lock = lock;
  }

  public Date getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(Date createdTime) {
    this.createdTime = createdTime;
  }

  public Date getUpdatedTime() {
    return updatedTime;
  }

  public void setUpdatedTime(Date updatedTime) {
    this.updatedTime = updatedTime;
  }

  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }

  @Override
  public String toString() {
    return "Projects{" +
      "id=" + id +
      ", userId=" + userId +
      ", name='" + name + '\'' +
      ", isProject=" + isProject +
      ", desc='" + desc + '\'' +
      ", lock=" + lock +
      ", createdTime=" + createdTime +
      ", updatedTime=" + updatedTime +
      ", state=" + status +
      '}';
  }
}
